| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

Static Public Member Functions | Public Attributes | List of all members
nkGraphics::RenderCommand Class Referencefinal

Describes a render command and provides the necessary information for it to happen. More...

## Static Public Member Functions
static RenderCommand | draw ()
static RenderCommand | changeShader (Shader *shader)
static RenderCommand | changeMesh (Mesh *mesh)
static RenderCommand | prepareInstance (Entity *entity)

## Public Attributes
Mesh * | _mesh = nullptr
| If necessary, the mesh to work with.
Shader * | _shader = nullptr
| If necessary, the shader to work with.
Entity * | _instance = nullptr
| If necessary, the instance to work with.
RENDER_COMMAND_TYPE | _type = RENDER_COMMAND_TYPE::UNKNOWN
| Its type.

## Detailed Description

Describes a render command and provides the necessary information for it to happen.

## Member Function Documentation

## ◆ draw()

static RenderCommand nkGraphics::RenderCommand::draw | ( |  | ) |
| static

Creates a drawing command.

Returns
  The command requested.

## ◆ changeShader()

static RenderCommand nkGraphics::RenderCommand::changeShader | ( | Shader * | shader | ) |
| static

Creates a shader changing command.

Parameters

  shader | The shader to use.

Returns
  The command requested.

## ◆ changeMesh()

static RenderCommand nkGraphics::RenderCommand::changeMesh | ( | Mesh * | mesh | ) |
| static

Creates a mesh changing command.

Parameters

  mesh | The mesh to use.

Returns
  The command requested.

## ◆ prepareInstance()

static RenderCommand nkGraphics::RenderCommand::prepareInstance | ( | Entity * | entity | ) |
| static

Creates a prepare instance command.

Parameters

  entity | The entity instance to use.

Returns
  The command requested.

The documentation for this class was generated from the following file:

- Documentation/Headers/NilkinsGraphics/RenderQueues/RenderStrategies/Commands/RenderCommand.h